using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel.DataAnnotations;

namespace ITS.Core.Domain.News
{
    public class NewsTag
    {
        private ICollection<NewsItem> _news;

        [Key]
        public int TagID { get; set; }
        public string Name { get; set; }
        public int NewsCount { get; set; }

        public virtual ICollection<NewsItem> NewsItems
        {
            get
            {
                return _news ?? (_news = new List<NewsItem>());
            }
            protected set
            {
                _news = value;
            }
        }
    }
}
